#include <iostream>
#include <string>
using namespace std;

class Student
{
public:
    Student();
    ~Student();
    void setName(string name);
    string getName() const;
    void setAge(int age);
    int getAge() const;
    void setGrade(int grade);
    int getGrade() const;


private:
    string name;
    int age;
    int grade;
};

Student::Student()
{
}

Student::~Student()
{
}

void Student::setName(string name)
{
    this->name = name;
}

string Student::getName() const
{
    return name;
};


void Student::setAge(int age)
{
    this->age = age;
}

int Student::getAge() const
{
    return age;
}

void Student::setGrade(int grade)
{
    this->grade = grade;
}

int Student::getGrade() const
{
    return grade;
}

int main()
{
    Student stu;
    stu.setName("leichao");
    stu.setAge(21);
    stu.setGrade(99);
    cout << "我叫 " << stu.getName() << ", 我 " << stu.getAge() << " 了," << "我的成绩为"<<stu.getGrade()<<endl;

    return 0;
}